package com.campus.domain.Dto;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class StudentCreateDto {

    private UserRegisterDto userRegisterDto;
    @NotBlank(message = "学生姓名不能为空")
    private String stuName;
    @NotBlank(message = "生源地不能为空")
    private String fromPlace;
    @NotBlank(message = "父母电话不能为空")
    private String parentPhone;
    @NotBlank(message = "当前年级不能为空")
    private String currentGrade;
    @NotBlank(message = "首次入学标记不能为空")
    @Length(max = 1)
    private String isFirst;
    private String comment;

}
